import actionRequest from '@/utils/request.ts'

//数据源
export const getHeadData_source = (): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/homepage/data-source',
    method: 'get'
  })
}
//数据表
export const getHeadData_table = (): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/homepage/data-table',
    method: 'get'
  })
}
//标签规则
export const getHeadTag_rule = (): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/homepage/tag-rule',
    method: 'get'
  })
}

//表单质量分区间分布
export const getdata_tables_quality = (): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/data_tables/quality',
    method: 'get'
  })
}
//标签专题
export const gettag_treeTables = (params: any): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/tag_tree/agg',
    method: 'get',
    params
  })
}
//图谱专题产业数仓数据量统计
export const getindustry_mapTables = (params: any): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/industry_map/agg',
    method: 'get',
    params
  })
}

//基础数据总量
export const getbasic_data_item = (): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/basic-data-item',
    method: 'get'
  })
}
//图谱
export const getindustry_map = (): Promise<any> => {
  return actionRequest({
    url: '/v1/data-assets/homepage/industry-map',
    method: 'get'
  })
}
